//
//  NSObject+Extend.swift
//  NSObject
//
//  Created by mini on 2025/4/28.
//

import Foundation

extension NSObject {
    static func feedback(style: UIImpactFeedbackGenerator.FeedbackStyle) {
        UIImpactFeedbackGenerator(style: style).impactOccurred()
    }
    
    func feedback(_ style: UIImpactFeedbackGenerator.FeedbackStyle = .medium) {
        NSObject.feedback(style: style)
    }
    
    /// 类名
    public static var className: String {
        return String(describing: self)
    }
}
